package com.ruoyi.oms.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 退款退货订单
 * </p>
 *
 * @author kenny
 * @since 2021-11-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("oms_order_compensate")
public class OrderCompensate implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     * 赔付单号
     */
    private String coNo;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 订单商品id
     */
    private Long orderItemId;

    /**
     * 状态(1-申请赔付,2-通过赔付,3-拒绝赔付)
     */
    private Integer status;

    /**
     * 类型(1-原价赔偿,2-赔偿原件)
     */
    private Integer type;

    /**
     * 损坏人
     */
    private String compensatePeople;

    /**
     * 损坏原因
     */
    private String compensateReason;

    /**
     * 损坏图片
     */
    private String compensatePic;

    /**
     * 订单商品名称
     */
    private String itemName;

    /**
     * 数量
     */
    private Integer itemNumber;

    /**
     * 商品单价
     */
    private BigDecimal itemPrice;

    /**
     * 备注
     */
    private String remark;

    private LocalDateTime createTime;

    private String createFrom;

    private LocalDateTime updateTime;

    private String updateFrom;


}
